package com.atguigu.maven.serverce;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atguigu.maven.bean.User1;
import com.atguigu.maven.mapper.UserDao;
@Service
public class UserServletImpl implements UserServlet{
	@Autowired
	private UserDao userdao;

	@Override
	public User1 getUserByNameAndPwd(String username, String password) {
		User1 user = userdao.getUserByUsernameAndPassword(username, password);
		return user;
	}

	@Override
	public User1 getUserByName(String username) {
		User1 user = userdao.getUserByUsername(username);
		return user;
	}

}
